package com.mmall.service;

import com.mmall.commons.ServiceResponse;
import com.mmall.vo.CartVo;
import org.springframework.stereotype.Service;

/**
 * @auther Mr.m
 * @date 2019/3/25-20:44
 */

public interface ICartService {
    ServiceResponse<CartVo> add(Integer userId, Integer productId, Integer count);

    ServiceResponse<CartVo> update(Integer userId, Integer productId, Integer count);

    ServiceResponse<CartVo> delete(Integer userId, String productIds);

    ServiceResponse<CartVo> list(Integer userId);

    ServiceResponse<CartVo> selectOrUnSelect(Integer userId, Integer productId, Integer checked);

    ServiceResponse<Integer> getCartProductCount(Integer userId);
}
